<?php

if(!isset($tpl))die('Wrong URL!');

$page_id="detail";
$id = trim($_GET['id']);

if(empty($id) || $id=='')die('Wrong ID!');

//$row = $db->query("SELECT * FROM tbl_apk WHERE id = {$id}")->fetch(PDO::FETCH_ASSOC);

$stat = mysql_query("SELECT * FROM tbl_apk WHERE id = {$id}");

$row = mysql_fetch_row($stat);
$size=$row[3]/1048576;
$tpl->assign('page_id', $page_id);
$tpl->assign('size', $size);
$tpl->assign('info', $row);
$tpl->display('detail.tpl');
